from ultralytics import YOLO

model = YOLO(r"yolo11n.pt")
model.predict(
    source=r"E:\M3Tracking\ultralytics-8.3.163\ultralytics\assets",
    save=True,
    show=False,
)